package com.dongdongshop.service;

import com.dongdongshop.pojo.Cart;
import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbOrder;
import com.dongdongshop.pojo.TbUser;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {
    Map<String,Object> insertOrder(TbOrder tbOrder, TbAddress addressById, List<Cart> carts);

    Object getOrdersByParenOrderId(String out_trade_no);

    int updateOrderStatus(List<TbOrder> orderList);

    PageInfo<TbOrder> listOrderByUser(Integer pageNum, Integer pageSize, TbUser user);

    void deleteItemOrderById(long parseLong, String refund_amount);

}
